﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDFtpSync.Entities
{
    /*
     * CreatedOn: 2018-05-23
     * CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 传输文件
    /// </summary>
    public class TransFile
    {
        public string Name { get; set; }

        /// <summary>
        /// 服务端相对路径，以'/'开始
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 相对于于根的以'/'开始目录
        /// </summary>
        public string RelativeRoot { get; set; }

        public long Size { get; set; }

        public DateTime CreatedTime { get; set; }

        public DateTime ModifiedTime { get; set; }

        public DateTime AccessedTime { get; set; }

        public PathType Type { get; set; }

    }

    public enum PathType
    {
        Dir,
        File
    }
}
